import request from '@/utils/request'
// 查询银行卡是否含有
export function isCardApi() {
    return request({
        url: '/wx/landlord/card/own',
        method: 'get',
    })
}
// 获取银行卡
export function getCardApi() {
    return request({
        url: '/wx/landlord/card',
        method: 'get',
    })
}
// 获取对公
export function getPublicApi() {
    return request({
        url: '/wx/landlord/card/cpy',
        method: 'get',
    })
}
// 获取删除银行卡code
export function delCardCodeApi() {
    return request({
        url: '/wx/landlord/card/deleteCode',
        method: 'post'
    })
}
// 删除银行卡
export function delCardApi(data) {
    return request({
        url: '/wx/landlord/card',
        method: 'delete',
        data
    })
}
// 删除对公
export function delPublicApi(data) {
    return request({
        url: '/wx/landlord/card/cpy',
        method: 'delete',
        data
    })
}
// 绑定银行卡code 
export function getBindCodeApi() {
    return request({
        url: '/wx/landlord/card/bindCode',
        method: 'post',
    })
}
// 绑定银行卡code 
export function BindCardApi(data) {
    return request({
        url: '/wx/landlord/card',
        method: 'post',
        data
    })
}
// 获取银行信息
export function getBankApi(pageNumber, pageSize, bankName) {
    return request({
        url: '/wx/landlord/card/cpy/bankMsg',
        params: {
            pageNumber, pageSize, bankName
        }
    })
}
// 绑定对公
export function bindPublicApi(data) {
    return request({
        url: '/wx/landlord/card/cpy',
        method:'post',
        data,
        headers: {
            'content-type': 'multipart/form-data' // 设置完以后 传入的params对象就会时候用formdata传参的方式
        }
    })
}
